# -*- coding: utf-8 -*-
"""
-------------------------------------------------
File Name： show_img
Description :
Author : 'li'
date： 2022/2/24
-------------------------------------------------
Change Activity:
2022/2/24:
-------------------------------------------------
"""

from ..misc.img_io import show_img


class ShowImg:
    def __init__(self, input_key='img'):
        """

        @param input_key:
        """
        self.input_key = input_key

    def __call__(self, data):
        img = data[self.input_key].copy()
        show_img(img)
        return data
